<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>My Google AJAX Search API Application</title>
	<script src="http://www.google.com/jsapi?key=ABQIAAAAnglguBwDM5qujOq99yyxbBT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSQZIpmCWT4KpZOx4ZO22JvXKuLOg" type="text/javascript"></script>
	<script src="http://www.google.com/uds/api?file=uds.js&amp;v=1.0" type="text/javascript"></script>
	<link href="http://www.google.com/uds/css/gsearch.css" type="text/css" rel="stylesheet"/>


	<style type="text/css"> 
		.gsc-search-box { display : none; } 
		.gsc-control { width : 400px; }
	</style>

	<script language="Javascript" type="text/javascript">
    //<![CDATA[
	google.load("search", "1");
    function OnLoad() {
      	var searchControl = new google.search.SearchControl();
	  
	  	var wwwSearch = new GwebSearch();
		var blogSearch = new GwebSearch();
		var videoSearch = new GvideoSearch();
		var imageSearch = new GimageSearch();
			
		wwwSearch.setUserDefinedLabel("Naujienos");
	  	wwwSearch.setSiteRestriction("003297298128839177532:5c0c7m99_qg");
		blogSearch.setSiteRestriction("003297298128839177532:cnid2bf5rua");
		blogSearch.setUserDefinedLabel("Tinklaraščiai");
		videoSearch.setUserDefinedLabel("Video");
		imageSearch.setUserDefinedLabel("Vaizdai");
		
      	searchControl.addSearcher(imageSearch);
		searchControl.addSearcher(videoSearch);
      	searchControl.addSearcher(wwwSearch);
		searchControl.addSearcher(blogSearch);

        var drawOptions = new GdrawOptions();
        drawOptions.setDrawMode(GSearchControl.DRAW_MODE_TABBED);

      	searchControl.draw(document.getElementById("searchcontrol"),drawOptions);

      // Execute an inital search
      searchControl.execute("Jurgis Razma");
    }
    google.setOnLoadCallback(OnLoad);

    //]]>
    </script>
  </head>
  <body>
    <div id="searchcontrol">Loading...</div>
  </body>
</html>


